package com.apache.rpc.dao;

import com.apache.database.db.DaoImpl;
import org.springframework.stereotype.Repository;

@Repository("rpcMonitoringDao")
public class RpcMonitoringDaoImpl extends DaoImpl {

    public String getSql(int type) {
        String sql = "";
        switch (type) {
        case 1:
            sql = "select count(*) from RpcMonitoring where 1=1 ";
            break;
        case 2:
            sql = " from RpcMonitoring where 1=1 ";
            break;
        default:
            sql = "select count(*) from RpcMonitoring where 1=1 ";
        }
        return sql;
    }

    public void initSystemCache() {
        //
    }
}
